# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-git-rebase
pkgver=0_git20220110
_gitrev=cb290f68e3e67c835f4eb5ced08c37acc91c464f
pkgrel=2
pkgdesc="Tree-sitter grammar for git's interactive rebase file"
url="https://github.com/the-mikedavis/tree-sitter-git-rebase"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/the-mikedavis/tree-sitter-git-rebase/archive/$_gitrev/tree-sitter-git-rebase-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
88f9f0fb18660ef85f47142637de5f49016c3b98493e50b83adb0ecbba88e1861ee137c4c40f7056f0d4f2e6447bdda3cf7a25eb3965897ef3586080076a2b0f  tree-sitter-git-rebase-cb290f68e3e67c835f4eb5ced08c37acc91c464f.tar.gz
"
